﻿@model Web.Models.Taoke.TaokeItemListModel
@using Nop.Web.Extensions;
@{
    Layout = "~/Views/Shared/_TaokeRoot.cshtml";
}

@section top_right_button
{
    <a href="@Url.RouteUrl("HomePage")" class="ui-btn-right ui-btn ui-btn-corner-all ui-shadow ui-btn-up-a"><span class="ui-btn-inner ui-btn-corner-all">返回</span></a>
}
<div class="category-page">   
    @*description*@
    @if (Model.TaokeItems.Count > 0)
    {
        <div class="category-description">
            <span class="fleft">
                @if (HttpContext.Current.Request.QueryString["CategoryName"] != null)
                {
                    @Html.Raw(HttpContext.Current.Server.UrlDecode(HttpContext.Current.Request.QueryString["CategoryName"]));
                }
                <span>&nbsp;</span>
                @if (HttpContext.Current.Request.QueryString["Keyword"] != null)
                {
                     @Html.Raw(HttpContext.Current.Server.UrlDecode(HttpContext.Current.Request.QueryString["Keyword"]));
                }
                <span>&nbsp;</span>
                共找到 @Model.PagingFilteringContext.TotalItems 条记录
            </span>
        </div>
        <div class="clear">
        </div>
    }
    
    @*item list*@
    @if (Model.TaokeItems.Count > 0)
    {
        <div class="product-list">
            <ul data-role="listview" data-inset="true" data-filter="false" data-theme="c">
                @foreach (var item in Model.TaokeItems)
                {
                    <li>
                        @Html.Partial("_Item", item)
                    </li>
                }
            </ul>
        </div>
    }

    <div class="clear">
    </div>
                
    <div class="pager">
    @Html.Pager(Model.PagingFilteringContext).QueryParam("pagenumber")
    </div>
</div>
